package com.winning.java.list;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author: rqx
 * @create: 2023/6/5 9:31
 * @description:
 */
@Data
public class People {
    private String name;
    private int age;

    public People(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public static List<People> GetList() {
        var list = new ArrayList<People>();
        list.add(new People("张三", 18));
        list.add(new People("李四", 20));
        list.add(new People("王五", 25));
        list.add(new People("张李王", 30));
        return list;
    }
}
